package com.bw.springboot.starter.upload.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "file")
public class FileProperties {
    //文件上传路径,要以“/”结尾
    private String path;
    //文件访问前缀  http://ip:port/
    private String domain;
    //是否开启文件上传
    private boolean enable = false;

}
